package com.ruoyi.linkage.service.impl;

import java.util.List;

import com.ruoyi.linkage.Vo.LinkageEventVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.linkage.mapper.LinkageEventSpecialRecordMapper;
import com.ruoyi.linkage.domain.LinkageEventSpecialRecord;
import com.ruoyi.linkage.service.ILinkageEventSpecialRecordService;

/**
 * 联动事件特情记录Service业务层处理
 *
 * @author pengjie
 * @date 2023-12-20
 */
@Service
public class LinkageEventSpecialRecordServiceImpl implements ILinkageEventSpecialRecordService
{
    @Autowired
    private LinkageEventSpecialRecordMapper linkageEventSpecialRecordMapper;

    /**
     * 查询联动事件特情记录
     *
     * @param id 联动事件特情记录主键
     * @return 联动事件特情记录
     */
    @Override
    public LinkageEventSpecialRecord selectLinkageEventSpecialRecordById(Long id)
    {
        return linkageEventSpecialRecordMapper.selectLinkageEventSpecialRecordById(id);
    }

    /**
     * 查询联动事件特情记录列表
     *
     * @param linkageEventSpecialRecord 联动事件特情记录
     * @return 联动事件特情记录
     */
    @Override
    public List<LinkageEventSpecialRecord> selectLinkageEventSpecialRecordList(LinkageEventSpecialRecord linkageEventSpecialRecord)
    {
        return linkageEventSpecialRecordMapper.selectLinkageEventSpecialRecordList(linkageEventSpecialRecord);
    }

    /**
     * 新增联动事件特情记录
     *
     * @param linkageEventSpecialRecord 联动事件特情记录
     * @return 结果
     */
    @Override
    public int insertLinkageEventSpecialRecord(LinkageEventSpecialRecord linkageEventSpecialRecord)
    {
        return linkageEventSpecialRecordMapper.insertLinkageEventSpecialRecord(linkageEventSpecialRecord);
    }

    /**
     * 修改联动事件特情记录
     *
     * @param linkageEventSpecialRecord 联动事件特情记录
     * @return 结果
     */
    @Override
    public int updateLinkageEventSpecialRecord(LinkageEventSpecialRecord linkageEventSpecialRecord)
    {
        return linkageEventSpecialRecordMapper.updateLinkageEventSpecialRecord(linkageEventSpecialRecord);
    }

    /**
     * 批量删除联动事件特情记录
     *
     * @param ids 需要删除的联动事件特情记录主键
     * @return 结果
     */
    @Override
    public int deleteLinkageEventSpecialRecordByIds(Long[] ids)
    {
        return linkageEventSpecialRecordMapper.deleteLinkageEventSpecialRecordByIds(ids);
    }

    /**
     * 删除联动事件特情记录信息
     *
     * @param id 联动事件特情记录主键
     * @return 结果
     */
    @Override
    public int deleteLinkageEventSpecialRecordById(Long id)
    {
        return linkageEventSpecialRecordMapper.deleteLinkageEventSpecialRecordById(id);
    }

    /**
     * 条件查询联动事件
     *
     * @param linkageEventVo 联动事件主键
     * @return 联动事件
     */
    @Override
    public List<LinkageEventSpecialRecord> queryLinkageEventSpecialRecordList(LinkageEventVo linkageEventVo) {
        return linkageEventSpecialRecordMapper.queryLinkageEventSpecialRecordList( linkageEventVo) ;
    }
}
